<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="follow, index" />
<meta name="author" content="iune co." />
<meta name="description"
	content="IUNE有最好的库存管理SaaS软件。以更快更高的准确度，跟进实时数据的访问和库存移动。" />
<meta name="keywords"
	content="库存, 存货管理, 库存管理, 仓库管理, 云ERP, 云逸ERP, 中小型企业云ERP, SaaS ERP软件/系统" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>


<style type="text/css">
td {
	padding: 0px;
	width: 100px;
}
</style>

</head>
<body>


	<div class="container-fluid">

		<div class="row">
			<div class="col-sm-12 col-content">


				<h3>
					<button type="button" class="btn btn-default "
						data-ng-click="Model.goBack()">
						<span class="glyphicon glyphicon-arrow-left"></span> 返回
					</button>
					组织机构 <small>建立公司、部门、岗位等信息，并进行人员分配。</small>
				</h3>
				<hr>

				<nav class="nav">
					<ul class="pagination navbar-left buttonBar">
						<li>
							<div class="btn-group" role="toolbar">
								<!-- Split button -->
								<div class="btn-group">
									<button type="button" class="btn btn-info "
										data-ng-disabled="true"
										data-ng-click="Model.addChild('ogn');">
										<span class="glyphicon glyphicon-plus"></span> 新建公司
									</button>
									<button type="button" class="btn btn-info dropdown-toggle"
										data-ng-disabled="!dataOrg.readonly()" data-toggle="dropdown"
										aria-haspopup="true" aria-expanded="false">
										<span class="caret"></span> <span class="sr-only">Toggle
											Dropdown</span>
									</button>
									<ul class="dropdown-menu">
										<li><a href="" data-ng-show="dataOrg.currentIndex!=null"
											data-ng-click="Model.addChild('dpt');"><i class="fa fa-institution"></i> 新建部门</a></li>
										<li><a href="" data-ng-show="dataOrg.currentIndex!=null"
											data-ng-click="Model.addChild('pos');"><i class="fa fa-graduation-cap"></i> 新建岗位</a></li>
										<li><a href="" data-ng-show="false"
											data-ng-click="Model.newPerson();"><i class="fa fa-user-md"></i> 新建人员</a></li>
										<li role="separator" class="divider"></li>
										<li><a href="" data-ng-show="dataOrg.currentIndex!=null"
											data-ng-click="Model.addPerson()"><i class="fa fa-user-md"></i> 添加人员</a></li>
										<li role="separator" class="divider"></li>
										<li><a href="" data-ng-show="dataOrg.currentIndex!=null"
											data-ng-click="Model.addFounder()"><i class="fa fa-user-md"></i> 添加本人</a></li>
									</ul>
								</div>
								<!-- Split button结束 -->
								<button type="button" class="btn btn-default"
									data-ng-disabled="dataOrg.currentIndex==null"
									data-ng-show="dataOrg.readonly()" data-ng-click="Model.edit();">
									<span class="glyphicon glyphicon-edit"></span> 修改
								</button>
								<button type="button" class="btn btn-success "
									data-ng-show="!dataOrg.readonly()"
									data-ng-click="Model.save();">
									<span class="glyphicon glyphicon-floppy-save"></span> 保存
								</button>
								<button type="button" class="btn btn-warning "
									data-ng-show="!dataOrg.readonly()"
									data-ng-click="Model.saveCancel();">
									<span class="glyphicon glyphicon-floppy-open"></span> 取消
								</button>
								<button type="button" class="btn btn-default"
									data-ng-show="dataOrg.readonly()"
									data-ng-disabled="!dataOrg.readonly() || dataOrg.currentIndex==null"
									data-ng-click="Model.remove()">
									<span class="glyphicon glyphicon-trash"></span> 删除
								</button>
								<button type="button" class="btn btn-default"
									data-ng-disabled="!dataOrg.readonly()"
									data-ng-click="Model.refresh()">
									<span class="glyphicon glyphicon-refresh"></span> 刷新
								</button>
										<!-- Split button -->
										<div class="btn-group">
										<button type="button" class="btn btn-warning"
											data-ng-disabled="!dataOrg.readonly()"
											data-ng-click="Model.sort()">
											<span class="glyphicon glyphicon-sort"></span> 排序
										</button>
											  <button type="button" class="btn btn-warning dropdown-toggle" 
												  data-ng-disabled="!dataOrg.readonly()"
												  data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
											    <span class="caret"></span>
											    <span class="sr-only">Toggle Dropdown</span>
											  </button>
											  <ul class="dropdown-menu">
											    <li><a href="" data-ng-click="Model.sort('root');">根节点排序</a></li>
											  </ul>
										</div>
										<!-- Split button结束 -->
								<button type="button" class="btn btn-success"
									data-ng-show="false"
									data-ng-disabled="!dataOrg.readonly()"
									data-ng-click="Model.triggerMainOrgIDClick()">
									<span class="glyphicon glyphicon-move"></span> 设置主岗
								</button>
							</div>
						</li>
					</ul>

						<query-like data="dataOrg" place-holder="模糊查询..."></query-like>

				</nav>

			</div>
		</div>


		<div class="row">
			<div class="col-sm-4 col-content">
				<div>
					<div tree-view 
						tree-data="dataOrg" 
						checkbox-show="false" 
						text-field="sName" 
						value-field='sID' 
						parent-field='sParent' 
						level-field='sLevel' 
						kind-field='sNodeKind' 
						icon-expression="{'fa-sitemap':row.sOrgKindID.value=='ogn','fa-institution':row.sOrgKindID.value=='dpt','fa-graduation-cap':row.sOrgKindID.value=='pos','fa-user-md':row.sOrgKindID.value=='psm'}">
					</div>
				</div>
			</div>
			<div class="col-sm-8 col-content">
			<form class="form-horizontal" name="usercenter_orgtree_tree_form">
				<div class="form-group form-group-sm" data-ng-show="false">
					<label class="col-sm-3 control-label">人员ID</label>
					<div class="col-sm-9">
						<div class="input-group">
							<input type="text" class="form-control"
								data-ng-model="dataOrg.rows[dataOrg.currentIndex].sPersonID.value"
								data-ng-readonly="true"> <span class="input-group-btn">
								<button class="btn btn-default btn-sm"
									data-ng-disabled="dataOrg.readonly() || dataOrg.rows[dataOrg.currentIndex].sPersonID.value!=null "
									ng-click="Model.triggerPersonIDClick()">
									<span class="glyphicon glyphicon-th-list" aria-hidden="true"></span>
								</button>
							</span>
						</div>
						<!-- /input-group -->
					</div>
				</div>
				<div class="form-group form-group-sm" data-ng-show="false">
					<label class="col-sm-3 control-label">sID</label>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							data-ng-model="dataOrg.rows[dataOrg.currentIndex].sID.value"
							data-ng-readonly="dataOrg.readonly();">
					</div>
				</div>
				<div class="form-group form-group-sm">
					<label class="col-sm-3 control-label">代码</label>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							data-ng-model="dataOrg.rows[dataOrg.currentIndex].sCode.value"
							data-ng-readonly="dataOrg.readonly();" placeHolder="自动编码"
							name="sCode">
					</div>
				</div>
				<div class="form-group form-group-sm has-warning">
					<label class="col-sm-3 control-label">名称</label>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							data-ng-model="dataOrg.rows[dataOrg.currentIndex].sName.value"
							name="sName" data-ng-readonly="dataOrg.readonly();">
					</div>
				</div>
				<div class="form-group form-group-sm has-warning">
					<label class="col-sm-3 control-label">长名称</label>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							data-ng-model="dataOrg.rows[dataOrg.currentIndex].sLongName.value"
							name="sLongName" data-ng-readonly="dataOrg.readonly();">
					</div>
				</div>
				<div class="form-group form-group-sm" data-ng-show="false">
					<label class="col-sm-3 control-label">全路径ID</label>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							data-ng-model="dataOrg.rows[dataOrg.currentIndex].sFID.value"
							data-ng-readonly="" name="sFID">
					</div>
				</div>
				<div class="form-group form-group-sm" data-ng-show="false">
					<label class="col-sm-3 control-label">全路径编码</label>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							data-ng-model="dataOrg.rows[dataOrg.currentIndex].sFCode.value"
							data-ng-readonly="true" name="sFCode">
					</div>
				</div>
				<div class="form-group form-group-sm" data-ng-show="false">
					<label class="col-sm-3 control-label">全路径名称</label>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							data-ng-model="dataOrg.rows[dataOrg.currentIndex].sFName.value"
							data-ng-readonly="true" name="sFName">
					</div>
				</div>
				<div class="form-group form-group-sm" data-ng-show="false">
					<label class="col-sm-3 control-label">父ID</label>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							data-ng-model="dataOrg.rows[dataOrg.currentIndex].sParent.value"
							data-ng-readonly="true" name="sParent">
					</div>
				</div>
				<div class="form-group form-group-sm" data-ng-show="false">
					<label class="col-sm-3 control-label">sNodeKind</label>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							data-ng-model="dataOrg.rows[dataOrg.currentIndex].sNodeKind.value"
							data-ng-readonly="true" name="sNodeKind">
					</div>
				</div>
				<div class="form-group form-group-sm" data-ng-show="false">
					<label class="col-sm-3 control-label">sLevel</label>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							data-ng-model="dataOrg.rows[dataOrg.currentIndex].sLevel.value"
							data-ng-readonly="true" name="sLevel">
					</div>
				</div>
				<div class="form-group form-group-sm" data-ng-show="false">
					<label class="col-sm-3 control-label">sSequence</label>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							data-ng-model="dataOrg.rows[dataOrg.currentIndex].sSequence.value"
							data-ng-readonly="true" name="sSequence">
					</div>
				</div>
				<div class="form-group form-group-sm">
					<label class="col-sm-3 control-label">组织类型</label>
					<div class="col-sm-9">
						<select class="form-control"
							data-ng-init="datasOrgKindID.rows=[{sOrgKindID:'ogn',sOrgKindIDLabel:'公司'},{sOrgKindID:'dpt',sOrgKindIDLabel:'部门'},{sOrgKindID:'pos',sOrgKindIDLabel:'岗位'},{sOrgKindID:'psm',sOrgKindIDLabel:'人员'}]"
							data-ng-options="o.sOrgKindID as o.sOrgKindIDLabel for o in datasOrgKindID.rows"
							data-ng-model="dataOrg.rows[dataOrg.currentIndex].sOrgKindID.value"
							data-ng-disabled="true" name="sOrgKindID" required>

							<option value=''>-- 选择类型 --</option>
						</select>

					</div>
				</div>

				<div class="form-group form-group-sm">
					<label class="col-sm-3 control-label">启用</label>
					<div class="col-sm-9">
						<input type="checkbox" class="form-control switch"
							data-ng-model="dataOrg.rows[dataOrg.currentIndex].sValidState.value"
							bootstrap-switch data-size="small" can-input="dataOrg.readonly()"
							data-ng-true-value="1" data-ng-false-value="-1" />
					</div>
				</div>

				<div class="form-group form-group-sm" data-ng-show="false">
					<label class="col-sm-3 control-label">创建者id</label>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							data-ng-model="dataOrg.rows[dataOrg.currentIndex].sCreatorFID.value">
					</div>
				</div>
			</form>

		</div>

		</div>

</div>



</body>

</html>

